package com.igor.bookStore.beans;

import java.util.LinkedList;
import java.util.List;

import com.igor.bookStore.inface.Customer;
import com.igor.bookStore.inface.Purchase;
import com.igor.bookStore.service.Customers;

public class CustomerBean implements Customer {
	
	private String name;
	private List<Purchase> purchases = new LinkedList<Purchase>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Purchase> getPurchases() {
		return purchases;
	}
	public void setPurchases(List<Purchase> purchases) {
		this.purchases = purchases;
	}
	
	public void executeCustomerCreation(Customers customers) {
        customers.save(this);
}


}
